import Mock from 'mockjs'
import home from './homeData'
import Parking from './Parking.js'
import loginData from './loginData'
import police from './PoliceofficerData'


Mock.mock(/\/parking/,'get',Parking.getHomeData)

Mock.mock(/\/qdelete/,'post',Parking.deleteDate)

Mock.mock(/\/addhander/,'post',Parking.addData)

Mock.mock(/\/getHome/,'get',home.getHomeData)
// 删除单个
Mock.mock(/\/adelete/,'post',home.deleteData)


Mock.mock(/\/getpoliceofficer/,'get',police.getPoliceofficerData)
// 删除单个
Mock.mock(/\/Policedelete/,'post',police.delData)
//添加接口
Mock.mock(/\/Policeaddhangder/,'post',police.addData)
//修改接口
Mock.mock(/\/uphangder/,'post',police.uphangderData)


import backstage from './backstageData'
import mock from 'mock'
Mock.mock(/\/getbackstage/,'get',backstage.getBackstageData)
// 删除
Mock.mock(/\/delete/,'post',backstage.deleteData)

// 登录
Mock.mock(/\/login/,'post',loginData.getloginData)
// 获取用于信息
Mock.mock(/\/getuser/,'post',loginData.getUserData)
// 用户注册的借口
Mock.mock(/\/register/,'post',loginData.registerData)
